/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.coworkboard.entities;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Text;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author xavier
 */
public class Page {

    private String title;
    private String content;
    private String image;
    public Page() {
       
    }
    public Page(Entity entity) {

        title = entity.getProperty("title").toString();
        content = ((Text)entity.getProperty("content")).getValue();
        image = (String)entity.getProperty("image");
    }
    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the titleStyle
     */
    public String getContent() {
        return content;
    }

    /**
     * @param titleStyle the titleStyle to set
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * @return the image
     */
    public String getImage() {
        return image;
    }

    /**
     * @param image the image to set
     */
    public void setImage(String image) {
        this.image = image;
    }

   
}
